package com.quanxi.qxaimain.common.globalException;

import lombok.Data;
import lombok.Getter;

/**
 * @Author lyx
 * @create 2022/9/2 15:24
 * 自定义异常类型枚举
 */
@Getter

public enum ResultCode {
    SUCCESS(1, "请求成功"),
    FAILED(0, "请求失败"),
    VALIDATE_ERROR(1002, "参数校验失败"),
    SQL_SUCCESS(1001,"sql成功"),
    SQL_ERROR(1003, "sql失败"),
    INDICATOR_NUM_NULL(1004, "sql失败:指标编号不存在或在qxzsk_t_indicator_sql表中null/未调试/失败/"),
    SQL_NUll(1005, "sql失败:指标的sql为空"),
    SQL_OVER_TIME_60S(1006,"sql失败:不得超过60秒 请优化"),
    SQL_OVER_TIME(1007,"60000"),//超时时间ms
    END_DATE_NOT_ALLOWED(1008,"结束时间超过了当前系统时间，请重新输入");

    private int  code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
